diff options
| author | Adam Soltys <[email protected]> | 2025-01-26 07:51:47 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-26 07:51:47 -0800 |
| commit | 38bcc3e6d10f203213eb5bc014f35e3736acf7a1 (patch) | |
| tree | 0d77bbe6e88de6119eb72dd416c237524dad1dd4 /src/routes/(app)/[username]/(profile)/+layout.server.ts | |
| parent | 2d896f2fce81b51d9d8c117140ae5d14361f5814 (diff) | |
| download | coinos-ui-38bcc3e6d10f203213eb5bc014f35e3736acf7a1.tar.gz coinos-ui-38bcc3e6d10f203213eb5bc014f35e3736acf7a1.zip | |
hide nostr stuff
Diffstat (limited to 'src/routes/(app)/[username]/(profile)/+layout.server.ts')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+layout.server.ts | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts index 70e7ebdb..e2ab51b1 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.server.ts +++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts @@ -7,12 +7,16 @@ export async function load({ depends, parent }) { const rates = await getRates(); const { subject, user } = await parent(); - const { follows, followers } = await get(`/${subject.pubkey}/count`); - let followList = new Promise((r) => r([])); - if (user) - followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch( - () => [], - ); + // const { follows, followers } = await get(`/${subject.pubkey}/count`); + // let followList = new Promise((r) => r([])); + // if (user) + // followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch( + // () => [], + // ); + + const followList = new Promise((r) => r([])); + const follows = []; + const followers = []; return { follows, followers, followList, rate: rates[subject.currency] }; } |
